import type { DefaultTheme } from 'vitepress'

export const getENSidebar: () => DefaultTheme.Sidebar = () => {
  return {
    zh: [
      {
        text: '开始',
        collapsed: false,
        items: [
          {
            text: '简介',
            link: '/zh/guide/'
          },
          {
            text: '快速上手',
            link: '/zh/guide/QuickStart'
          }
        ]
      },
      {
        text: '基础',
        collapsed: false,
        items: [
          {
            text: '创建一个页面',
            link: '/zh/guide/create-app.md'
          },
          {
            text: '路由',
            link: '/zh/router/index.md'
          },
          {
            text: ' 部置',
            link: '/zh/deploy/index.md'
          }
        ]
      },
      {
        text: '规则规范',
        items: [
          {
            text: 'husky代码提交检测',
            link: '/zh/standard/husky'
          }
        ]
      },
      {
        text: '深入',
        collapsed: false
      },
      {
        text: '配置和API参考',
        collapsed: false,
        link: '/zh/api/index.md'
      },
      {
        text: '自动化测试',
        collapsed: false,
        link: '/zh/test/index.md'
      }
    ]
  }
}
